package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 支付订单表
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_pay_order")
@ApiModel(value = "WoPayOrder对象", description = "支付订单表")
public class WoPayOrder implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("支付订单编号")
    @TableField("pay_order_no")
    private String payOrderNo;

    @ApiModelProperty("支付类型: 1:充值")
    @TableField("pay_order_type")
    private Integer payOrderType;

    @ApiModelProperty("支付金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty("充值订单状态 0: 已取消 1: 待付款 2: 成功 3: 失败")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("支付单价")
    @TableField("pay_price")
    private BigDecimal payPrice;

    @ApiModelProperty("支付数量")
    @TableField("pay_value")
    private Integer payValue;

    @ApiModelProperty("用户Id(t_user.id)")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("支付类型1: 支付宝 2:微信 3: 线下转账")
    @TableField("pay_way")
    private Integer payWay;

    @ApiModelProperty("运营商Ids")
    @TableField("operation_id")
    private String operationId;

    @ApiModelProperty("收款商户号")
    @TableField("receive_mch_id")
    private String receiveMchId;

    @ApiModelProperty("第三方商家的交易流水")
    @TableField("third_transaction_no")
    private String thirdTransactionNo;

    @ApiModelProperty("支付附加信息")
    @TableField("append_info")
    private String appendInfo;

    @ApiModelProperty("剩余可退金额")
    @TableField("surplus_refund_balance")
    private BigDecimal surplusRefundBalance;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("支付时间")
    @TableField("pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date payTime;

    @ApiModelProperty("支付结果")
    @TableField("pay_result")
    private String payResult;

    @ApiModelProperty("付款人用户Id")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("下单时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
